package com.wisewin.circle.dao;

import com.wisewin.circle.entity.db.ActivityDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ActivityDAO {

    public void insert(@Param("obj")ActivityDO activityDO);

    public ActivityDO queryActivityById(Integer activityId);

    public void updateSignNum(Integer activityId);

    public ActivityDO queryActivityDetail(Integer activityId);

    public List<ActivityDO> queryActivityList(Map<String, Object> map);

    public int queryActivityCount(Map<String, Object> map);

    public void cancleSignNum(Integer activityId);

    public void updateCommentNum(Integer activityId);

    public void cancleCommentNum(Integer activityId);

    public int queryActivityNum();

    public void updateStatus(Integer activityId, Integer status);

    public void update(@Param("obj")ActivityDO activityDO);
}
